package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.User;

import java.util.List;
import java.util.Map;
import java.util.Set;

public interface UserDao {
    public User findByUsername(String username);

    /*用户管理DAO接口*/
    public Page<User> selectByCondition(String queryString);
    public void add(User user);
    public void update(User user);
    public User findByUserId(Integer id);
    public void delete(Integer id);
    public void addUserAndRoleIds(Map map);
    public void deleteCenterByUserId(Integer id);
    public Set<Integer> findRoleIds(Integer id);
    User findByUserName(String username);


}
